import axios from '@/utils/request.js'
/**
 * 登录验证功能
 */
export const login = (mobile, code) => {
  return axios({
    method: 'POST',
    url: '/app/v1_0/authorizations',
    data: {
      mobile,
      code
    }
  })
}
/**
 * 获取用户信息
 */
export const getProfile = () => {
  return axios({
    method: 'GET',
    url: '/app/v1_0/user/profile'
  })
}
